

var text = getQueryString("text");
if ($("title").text().trim() === "Page Not Found") {
  // 页面不存在
  console.log("404 Page Error");

}else if(text) {

    var type="ozonLive";
    chrome.runtime.sendMessage({ data: {type}, close: false });
    getFirstPage();
}else{
    startNextQ();
}

chrome.runtime.onMessage.addListener(async (msg, sender) => {
  console.log(msg)
  setTimeout(() => {
     location.href=msg
  }, 10000);

})


window.onerror = function (event) {
  if (event.message.includes('QUIC_PROTOCOL_ERROR')) {
    // 发生了 QUIC 协议错误的情况下执行的逻辑
    console.log('发生了 QUIC 协议错误！');
  }
}






